<?php
defined('BY_JYA') or exit('error');
/*
	自动收货
*/
//确认收货
$orderset=plugin_set2('order');
$orderset['endtime']=$orderset['endtime']?$orderset['endtime']:3;
$deftime10=TIMESTAMP - $orderset['endtime']*24*3600;
pdo_update('jy_weishop_order',array('status'=>3,'finishtime'=>TIMESTAMP,'getgoodstime'=>TIMESTAMP),array('plugin_name'=>'jy_jdpm','status'=>2,'sendtime <'=>$deftime10));

